/*
 * @ author Junr
 * @ use 订单
 */
import Request from '../request';
export default {
  // 订单初始化
  init (params) {
    return Request.post({ url: `/m/order/init`, params });
  },
  // 订单列表
  list (params) {
    return Request.post({ url: `/m/order/list`, params });
  },
  // 订单详情
  details (params) {
    return Request.post({ url: `/m/order/detail`, params });
  },
  // 确认收货
  receive (params) {
    return Request.post({ url: `/m/order/receive`, params });
  },
  // 订单取消
  cancel (params) {
    return Request.post({ url: `/m/order/cancel`, params });
  },
  // 订单提交
  submit (params) {
    return Request.post({ url: `/m/order/submit`, params });
  },
  // 支付
  pay (params) {
    return Request.post({ url: `/m/order/pay`, params });
  },
  // 订单详情
  detail (params) {
    return Request.post({ url: `/m/order/detail`, params });
  },
  // 订单优惠劵
  coupon (params) {
    return Request.post({ url: `/m/order/coupon`, params });
  }
};
